package com.third.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.third.entity.OutboundOrder;
import com.third.mapper.Outbound_mapper;
import com.third.service.Out_service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.logging.Handler;


@Service
public class Out_ServiceImpl extends ServiceImpl<Outbound_mapper, OutboundOrder> implements Out_service {
    @Resource
    private Outbound_mapper outbound_mapper;
    @Override
    public IPage<OutboundOrder> getList(HashMap<String,Object> map) {
        List<OutboundOrder> outList = outbound_mapper.getList(map);
        int current =(int) map.get("current");
        int size =(int) map.get("size");
        IPage<OutboundOrder> page=new Page<>(current,size);
        page.setRecords(outList);
        return page;
    }
}
